package com.design.model;

/**
 * def
 *
 * @author lw
 * @date 2023/12/1 14:55
 **/
public class SingletonExample {

    public static void main(String[] args) {
        // 获取单例实例
        Singleton singleton = Singleton.getInstance();

        // 调用成员方法
        singleton.showMessage();
    }
}
